package com.spzx.controller;

import com.spzx.common.core.web.controller.BaseController;
import com.spzx.common.core.web.domain.AjaxResult;
import com.spzx.service.BrandAllService;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/brand")
public class BrandAllController extends BaseController {
    @Resource
    BrandAllService brandAllService;
    @GetMapping("/getBrandAll")
    @Operation(summary = "获取所有品牌")

    public AjaxResult getBrandAll(){
        return success(brandAllService.getBrandAll());
    }

}
